import * as API from "@/api/api";

//媒体
export default {
    getMediumOnlineList: params => {
        return API.POST("/user/getMediumOnlineList", params, null, 1);
    },
    getMediumOfflineList: params => {
        return API.POST("/user/getMediumOfflineList", params, null, 1);
    },
    doAddOnlineMedium: params => {
        return API.POST("/user/doAddOnlineMedium", params, null, 1);
    },
    doAddOfflineMedium: params => {
        return API.POST("/user/doAddOfflineMedium", params);
    },
    doUpdateOnlineMedium: params => {
        return API.POST("/user/doUpdateOnlineMedium", params, null, 1);
    },
    doUpdateOfflineMedium: params => {
        return API.POST("/user/doUpdateOfflineMedium", params);
    },
    doDelOnlineMedium: params => {
        return API.POST("/user/doDelOnlineMedium", params, null, 1);
    },
    doDelOfflineMedium: params => {
        return API.POST("/user/doDelOfflineMedium", params, null, 1);
    },

    getMediumCountList: params => {
        return API.POST("/user/getMediumCountList", params, null, 1);
    },
    getProjectListFromMediumCount: params => {
        return API.POST("/user/getProjectListFromMediumCount", params, null, 1);
    },

    doExportMediumCount: params => {
        return API.POSTFILE("/user/doExportMediumCount", params, "application/json", true);
    },

    getMediumOfflineCascader: params => {
        return API.POST("/user/getMediumOfflineCascader", params, null, 1);
    },
};
